require File.join(File.dirname(__FILE__),'..','lib','lpm.rb')

require "Benchmark"
require "pp"

Benchmark.bm do |x|
  x.report("CPU"){pp LPM::Proc.cpu}
  x.report("CPU(5)"){pp LPM::Proc.cpu(5)}
  x.report("CPU(10)"){pp LPM::Proc.cpu(10)}
  x.report("CPU(15)"){pp LPM::Proc.cpu(15)}
end

# => below test is for LPM::Proc
pp "LPM::Proc.loadavg => #{LPM::Proc.loadavg}"
pp "LPM::Proc.uptime => #{LPM::Proc.uptime}"
pp "LPM::Proc.meminfo => #{LPM::Proc.meminfo}"
pp "LPM::Proc.cpuinfo => #{LPM::Proc.cpuinfo}"